package com.dxyxx.getstart;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;

import com.dxyxx.R;
import com.dxyxx.android.setting.GetstartPreferences;
import com.dxyxx.framework.FragmentMainActivity;

public class Fragment4 extends Fragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		super.onCreateView(inflater, container, savedInstanceState);
		View view = inflater.inflate(R.layout.fragment_4, container, false);
		view.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {

				//startActivity(new Intent(getActivity(), FragmentMainActivity.class));
				GetstartPreferences.getInstance(getActivity()).setFlag();
				getActivity().finish();// 结束开始页面

			}
		});
		return view;
	}

}
